package com.homework.ch03;

import java.lang.reflect.Method;

/**
 * @author yang
 * @date 2024-03-26
 */
public class GetStringMethods {
    public static void main(String[] args) {
        Class<String> stringClass = String.class;
        Method[] methods = stringClass.getDeclaredMethods();
        System.out.println("方法的个数:"+methods.length);
        for (Method method : methods){
            System.out.println(method);
        }
    }
}
